package actions

import (
	v "github.com/gopherjs/vecty"
)

type OnOkFunc func(child DialogChild) bool

type DialogChild interface {
	v.Component
	CheckValidity() bool
}

type ShowDialog struct {
	Title       string
	Child       DialogChild
	OnOk        OnOkFunc
	OnCancel    func()
	NoCancelBtn bool
}

type HideDialog struct {
}

type SetDialogWaiting struct {
	Value bool
}

type SetDialogErrMsg struct {
	Value string
}



type LoginSuccess struct {
	Username string
}

type Logout struct {
}

type SetUsername struct {
	Username string
}

type SetActiveRoute struct {
	Route string
}

